配置交换机管理IP |
您所在的位置:网站首页 › ONU设置带内IP 地址和管理VLAN的命令是 › 配置交换机管理IP |
配置交换机管理IP
3.1 问题
配置交换机管理IP为192.168.1.1 ,默认网关为192.168.1.100 3.2 方案网络拓扑图如图-3 图-3 3.3 步骤实现此案例需要按照如下步骤进行 步骤一:配置交换机接口模式 1)配置路由器R1的接口IP作为192.168.1.0网段的网关地址 Router>enable Router#configure terminal Router(config)#interface fastEthernet 0/0Router(config-if)#ip address 192.168.1.100Router(config-if)#ip address 192.168.1.100 255.255.255.0Router(config-if)#no shutdown2)配置交换机管理IP和网关地址 Switch(config)#interface vlan 1Switch(config-if)#ip address 192.168.1.1 255.255.255.0Switch(config-if)#no shutdown Switch(config-if)#exitSwitch(config)#ip default-gateway 192.168.1.1003)用ping命令进行测试 PC>ipconfigFastEthernet0 Connection:(default port)Link-local IPv6 Address.........: FE80::200:CFF:FEE4:90B0IP Address......................: 192.168.1.2Subnet Mask.....................: 255.255.255.0Default Gateway.................: 192.168.1.100PC>ping 192.168.1.1Pinging 192.168.1.1 with 32 bytes of data:Request timed out.Reply from 192.168.1.1: bytes=32 time=0ms TTL=255Reply from 192.168.1.1: bytes=32 time=3ms TTL=255Reply from 192.168.1.1: bytes=32 time=0ms TTL=255Ping statistics for 192.168.1.1:Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 3ms, Average = 1msPC>ping 192.168.1.100Pinging 192.168.1.100 with 32 bytes of data:Reply from 192.168.1.100: bytes=32 time=50ms TTL=255Reply from 192.168.1.100: bytes=32 time=0ms TTL=255Reply from 192.168.1.100: bytes=32 time=0ms TTL=255Reply from 192.168.1.100: bytes=32 time=0ms TTL=255Ping statistics for 192.168.1.100:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 50ms, Average = 12ms |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |